package com.vd.dsl;

public class GraphBuilder {
	private Graph graph;
	public Graph getGraph() {
		return graph;
	}
	public GraphBuilder() {
		graph = new Graph();
	}
	public static GraphBuilder Graph(){
		return new GraphBuilder();
	}
	public EdgeBuilder edge(){
		EdgeBuilder builder = new EdgeBuilder(this);
		this.graph.addEdge(builder.edge);
		return builder;
	}
	public void printGraph(){
		Graph.printGraph(graph);
	}
}
